#include "mqttinterface.h"

MqttInterface::MqttInterface() noexcept
    :m_mqtt_interface_impl(std::make_shared<MqttInterfaceImpl>())
{
}

int MqttInterface::pub_init(const std::string& address, const std::string& clientID,
	const std::string& dir)
{
    m_mqtt_interface_impl->pub_init(address, clientID, dir);
    return 0;
}

int MqttInterface::pub_data(const std::string &topic, const std::string &data, const int qos)
{
    m_mqtt_interface_impl->pub_data(topic, data, qos);
    return 0;
}
